package com.yun.blog.controller;

import com.yun.blog.bean.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * title        : AdminController
 * projectName  : dantouBlog-back
 * description  : TODO
 * author       : simple
 * date         : 2022/11/25下午4:25
 */

@Slf4j
@RestController
@RequestMapping("/admin")
@Api(tags = "后台接口")
public class AdminController {

    @ApiOperation(value = "后台测试连接",notes = "可以连接返回true")
    @RequestMapping(value = "/testRight",method = {RequestMethod.GET,RequestMethod.POST})
    public Result test(){
        return Result.success();
    }

}
